/*
 * BaseEntity.java
 * 
 * Versao: 1.0.0
 *
 * Data: 06/04/2011
 *
 * Copyright (C) 2011
 * wsh-systems.
 * Todos os direitos reservados.
 */
package com.wsh.playeronline.persistence.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;

import com.wsh.playeronline.persistence.enums.Status;

/**
 * Abstract class for Entity.
 * 
 * @author Washington
 * @version 1.0, 06/04/2011
 */
public abstract class BaseEntity implements Serializable {

	private static final long serialVersionUID = 4747575679989480258L;

	private Date data;
	
	@Enumerated(EnumType.STRING)
	private Status status = Status.ATIVO;
	
	/**
	 * Get to data.
	 * 
	 * @return data
	 */
	public Date getData() {
		return data;
	}
	/**
	 * Set to data.
	 * 
	 * @param data to set data
	 */
	public void setData(Date data) {
		this.data = data;
	}
	/**
	 * Get to status.
	 * 
	 * @return status
	 */
	public Status getStatus() {
		return status;
	}
	/**
	 * Set to status.
	 * 
	 * @param status to set status
	 */
	public void setStatus(Status status) {
		this.status = status;
	}
	
}